package com.power.sifa.correction.dao;

import com.power.sifa.correction.model.pageInfo.Cre_record_gaPageInfo;
import com.power.sifa.correction.model.pageInfo.Cre_warningPageInfo;
import com.power.sifa.correction.model.pojo.vo.PhotoVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
* 预警信息 持久层Custom(hibernate)
*/

public interface Cre_warningDaoCustom<Cre_warning, Serializable> {

    /**
     * 预警信息关联查询数据
     * @param pageInfo
     * @return
     */
    List<Cre_warning> queryList(Cre_warningPageInfo pageInfo);

    Page<Cre_warning> queryPage(Cre_warningPageInfo pageInfo);

    List<Cre_warning> findByTimeAndDeptid(Cre_warningPageInfo pageInfo);

    List<PhotoVO> getPhotoList(Cre_record_gaPageInfo pageInfo);

    Page<Cre_warning> historicalWarning(Cre_warningPageInfo pageInfo, Pageable pageable);

    Map<String, Object> findWarningRecordVO(String warnId);

    String getFileUrl(String fileId);
}
